package ro.sergiu.finder.ui.button.listeners;

import java.util.EventListener;
import java.util.List;

/**
 *
 * @author Toporjinschi
 */
public interface SelectionListener<S> extends EventListener {

    /**
     * Is triggered when the user has closed the selection window.<br/>
     *
     * @param selection the list of selected records. If the user has hit Cancel
     * then selection will be null
     */
    public void perform(List<S> selection);
}
